<template>
  <admin-layout class="ArticleShow">
    <h1>{{$route.params}}</h1>
    <div>
      {{ item }}
    </div>
  </admin-layout>
</template>

<script>
  import {
    mapActions,
    mapState
  } from 'vuex'

  export default {
    name: "ArticleShow",
    computed: {
      ...mapState('article', ['item'])
    },
    created() {
      const {
        id
      } = this.$route.params
      this.getItem(id)
    },
    methods: {
      ...mapActions('article', ['getItem'])
    }
  };
</script>

<style>

</style>